package com.itheima.edu.info.maneger.controller;

import com.itheima.edu.info.maneger.domain.Teacher;

/**
 * 开闭原则   只能拓展，不能修改
 */
public class OtherTeacherController extends BaseTeacherController {
    //封装信息
    public Teacher inputTeacherInfo(String updateId) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //将用户输入的数据进行封装
        Teacher newteacher = new Teacher(updateId, name, age, birthday);
        return newteacher;
    }
}
